package org.lwj.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.lwj.Intercepts.QueryInterceptor;
import org.lwj.web.domain.User;

import javax.management.Query;

public interface UserMapper extends BaseMapper<User> {

    /**
     * 如果要针对被加密的字段进行检索，取的别名必须是在拦截器中定义过的
     * @param user
     * @return
     */
    User selectByXml(@Param(QueryInterceptor.paramVal) User user);
}